package com.example.todofinally.sql;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

public class SqLiteHelper extends SQLiteOpenHelper {
    public SqLiteHelper(@Nullable Context context) {
        super(context, "test.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL( "create table todo(id integer primary key autoincrement," +
                "startTime varchar(64)," +
/*
                "endTime varchar(64)," +
*/
                "editTitle varchar(64)," +
                "date varchar(64)," +
                "content varchar(64)," +
                "photo varchar(255)," +
                "status int)");


    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
